<template>
    <div class="progress">
        <div class="active" :style="'width:' + use / total * 100 + '%'"></div>
        <div class="font">
            <span>{{ $global.getSize(parseInt(use)) }}/{{ $global.getSize(parseInt(total)) }}</span>
        </div>
    </div>
</template>

<script>
export default {
    name: "my-progress",
    props: ['total', "use"],
}
</script>   

<style scoped>
.progress {
    width: 100%;
    height: 10px;
    background-color: #eeeff4;
    border-radius: 4px;
}

.active {
    background-color: #409EFF;
    height: 10px;
    border-radius: 4px;
}

.font {
    margin-top: 5px;
    font-size: 13px;
    color: #afb3bf;
}
</style>